module.exports = function($scope, $state, $stateParams, $modalInstance, items, $resource){

     $scope.cancel = function () {  
        $modalInstance.dismiss('cancel'); 
    };
    $scope.gogogo = function () {
        if($scope.linereject.$valid){
            //alert('通过验证可以提交表单');

        }else{
            //alert('表单没有通过验证');
            return;
        }

        $resource('/api/ac/lc/lineOrderListService/updateSupplierInfo', {}, {}).save(items, function(res){
            if(res.errcode === 0){
                $modalInstance.close($scope.result);
                alert('通过成功');
            }else{
                alert(res.errmsg);
            }
        });
    };

    
};